<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" >
<body>
<!-- begin #header -->
<nav id="header"  th:fragment="header" class="page-controls navbar navbar-dashboard">
    <input type="hidden" th:value="${session.username}" id="pushusername">
    <script th:src="@{/js/pushinfo.js}"></script>
    <div class="container-fluid">
        <div class="navbar-header">
            <ul class="nav navbar-nav">
                <li class="nav-item">
                    <a  class="hidden-md-down nav-link " title="菜单栏展开/收缩" >
                        <i id="nav-state-toggle" class="fa fa-bars fa-lg"></i>
                        <span>&nbsp;&nbsp;&nbsp;&nbsp;北京苗木种植基地</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav pull-xs-right">
                <li title="当前登录用户"  class="dropdown nav-item">
                    <a href="#" class="dropdown-toggle dropdown-toggle-notifications nav-link">
                        </input><shiro:principal/></span>
                    </a>
                </li>
                <li title="修改密码" class="dropdown nav-item">
                    <a id="notifications-dropdown-toggle" data-toggle="dropdown" class="dropdown-toggle dropdown-toggle-notifications nav-link">
                        <i class="fa fa-cog fa-lg"></i>
                    </a>
                    <div class="dropdown-menu dropdown-menu-right animated fadeInUp" id="notifications-dropdown-menu">
                        <section class="card notifications">
                            <header class="card-header">
                                <div class="text-xs-center mb-sm">
                                    <strong>修改密码</strong>
                                </div>
                            </header>
                            <div id="notifications-list" class="list-group thin-scroll" style="height: 200px;">
                                <div class="widget-body">
                                    <form th:action="@{/admin/password/save}" id="validation-form" class="form-horizontal form-label-left" method="post"
                                          data-parsley-priority-enabled="false"
                                          novalidate="novalidate">
                                            <div class="col-sm-9">
                                                <input type="password" id="password" name="password" class="form-control mb-sm"
                                                       data-parsley-trigger="change"
                                                       data-parsley-minlength="6"
                                                       required="required">
                                                <input type="password" id="password-r" name="password-r" class="form-control"
                                                       data-parsley-trigger="change"
                                                       data-parsley-minlength="6"
                                                       data-parsley-equalto="#password"
                                                       required="required">
                                            </div>
                                       <button type="submit" class="btn btn-danger btn-rounded pull-xs-right">提交</button>
                                    </form>
                                </div>
                            </div>
                        </section>
                    </div>
                </li>
                <li title="退出系统" class="dropdown nav-item">
                    <a th:href="@{/logout}" class="dropdown-toggle dropdown-toggle-notifications nav-link">
                        <i class="fa fa-sign-out"></i>
                    </a>
                </li>
               <!-- <shiro:hasAnyRoles name="admin,finance">
                    <li class="nav-item">
                        <a href="#" id="result" onclick="gonumber()" class="nav-link" data-toggle="chat-sidebar">
                            <span class="label label-pill label-danger pull-xs-right animated bounceInDown" th:text="${sum}"></span>
                        </a>
                    </li>
                </shiro:hasAnyRoles>-->
            </ul>
        </div>
    </div>
</nav>
<!-- end #header -->
</body>
</html>